package ioc;

/**
 * @author dell
 * @category IOC实现-java反射机制
 */
public class Test {

	
	public static void main(String[] args) throws Exception {
		ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("springStu/IOC/beans.xml");
		UserService uSer = (UserService) ctx.getBean("userService");
		uSer.say();
	}
}
